import { defHttp } from '/@/utils/http/axios';
import { ErrorMessageMode } from '/#/axios';

import {
  StaffSignInDto,
  StaffSignInQueryConditionDto
} from './model/staffSignInRecordModel'

enum Api {
  QueryLatest = '/ehs/staffsignin/latest',  // 查询最新签到记录
}


/**
 * 
 * @param param 查询
 * @param mode 
 * @returns 
 */
export function queryLatest(param: StaffSignInQueryConditionDto, mode: ErrorMessageMode = 'modal') {
  return defHttp.post<StaffSignInDto[]>(
    {
      url: Api.QueryLatest,
      params: param
    }, {
    errorMessageMode: 'modal',
  }
  );
}